package com.cutJar.util;

import java.io.FileInputStream;
import java.io.FileOutputStream;
/**
 * 
 * <b>复制二进制文件<b>
 * @see
 * 此处用于jdk精简
 * @author 威 
 * <br>2018年3月24日 下午12:49:07 
 *
 */
public class CopyFile {
	public static CopyFile getInstance(){
		return new CopyFile();
	}
	public void copy(String sourcePath, String copyToPath) throws Exception{
		FileInputStream fis = new FileInputStream(sourcePath);
		FileOutputStream fos = new FileOutputStream(copyToPath);
		int b = -1;
		while((b = fis.read()) != -1) fos.write(b);
		fis.close();
		fos.close();
	}
}
